package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.KubernetesGroupRoleBinding;
import com.ruoyi.web.domain.KubernetesUserRoleBinding;

/**
 * K8s组权限Mapper接口
 *
 * @author xuchengchao
 * @date 2022-04-17
 */
public interface KubernetesGroupRoleBindingMapper
{
    /**
     * 查询K8s组权限
     *
     * @param id K8s组权限主键
     * @return K8s组权限
     */
    public KubernetesGroupRoleBinding selectKubernetesGroupRoleBindingById(Long id);

    /**
     * 查询K8s组权限列表
     *
     * @param kubernetesGroupRoleBinding K8s组权限
     * @return K8s组权限集合
     */
    public List<KubernetesGroupRoleBinding> selectKubernetesGroupRoleBindingList(KubernetesGroupRoleBinding kubernetesGroupRoleBinding);

    /**
     * 新增K8s组权限
     *
     * @param kubernetesGroupRoleBinding K8s组权限
     * @return 结果
     */
    public int insertKubernetesGroupRoleBinding(KubernetesGroupRoleBinding kubernetesGroupRoleBinding);

    /**
     * 修改K8s组权限
     *
     * @param kubernetesGroupRoleBinding K8s组权限
     * @return 结果
     */
    public int updateKubernetesGroupRoleBinding(KubernetesGroupRoleBinding kubernetesGroupRoleBinding);

    /**
     * 删除K8s组权限
     *
     * @param id K8s组权限主键
     * @return 结果
     */
    public int deleteKubernetesGroupRoleBindingById(Long id);

    /**
     * 批量删除K8s组权限
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKubernetesGroupRoleBindingByIds(Long[] ids);


    public List<KubernetesGroupRoleBinding> selectKubernetesGroupRoleBindingListByGroupId(Long id);
}
